package com.cloud.bean.good;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyuan
 * @since 2022-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("g_good")
public class Good extends Model<Good> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String customerNo;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 销售价格
     */
    private BigDecimal sellPrice;

    /**
     * 市场销售价格
     */
    private BigDecimal marketPrice;

    /**
     * 成品价
     */
    private BigDecimal costPrice;

    /**
     * 商品状态
     */
    private String skuStatus;

    /**
     * 上架时间
     */
    private LocalDateTime publishTime;

    /**
     * 下架时间
     */
    private LocalDateTime closeTime;

    /**
     * 是否推荐
     */
    private Integer recommend;

    /**
     * 条形码
     */
    private String barcode;

    /**
     * 类目1
     */
    private Long menuId;

    /**
     * 简要描述
     */
    private String remark;

    /**
     * 首个图片
     */
    private String imgFirst;

    /**
     * 商品图片
     */
    private String imgsUrl;

    /**
     * 商品数量
     */
    private Integer num;

    private LocalDateTime createDate;

    private LocalDateTime updateDate;

    /**
     * 限购
     */
    private Integer buyLimit;

    /**
     * 是否有发票
     */
    private Integer hasReceipt;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
